import baseRequest from "@/common/js/request.js"

/**
 * 获取问题咨询列表
 */
function getQuestionPageList(option) {
  return baseRequest('/jcApi/jcQuestion/myList', option)
}

/**
 * 获取问题咨询详情
 */
function getQuestionDetail(id) {
  return baseRequest('/jcApi/jcQuestion/detail', {id})
}

/**
 * 保存
 * @param params
 */
function saveQuestion(params) {
	return baseRequest(params.id? '/jcApi/jcQuestion/edit':'/jcApi/jcQuestion/add', params, 'POST')
}

/**
 * 删除
 * @param resumeIds
 */
function deleteQuestion(resumeIds) {
	return baseRequest('/jcApi/jcQuestion/remove/' + resumeIds, {}, 'POST')
}

export{
	getQuestionPageList,
	getQuestionDetail,
	saveQuestion,
	deleteQuestion
}